#pragma once 
#include<stdio.h>
#define MAX 1024
#define NONE 1<<0
#define line 1<<1
#define full 1<<2
typedef struct to_file
{
  int flag;
  int fid;
  char outbuffer[MAX];
  int bufferlen;
  int flush_mthod;
}myfile;
myfile* myfopen(const char* path,const char* mod);
void myfclose(myfile* a);
int myfwrite(myfile* a,void* str,int len);
void myfflush(myfile* a);

